home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / AMOSList / AMOSLIST / text0210.txt < prev    next >
Encoding:
Text File  |  1998-04-01  |  901 b   |  48 lines

  1.  
  2. Hello!
  3.  
  4. I have a little coding problem that i think most of you are able to help me 
  5. out with quite easy.
  6.  
  7. a
  8. Procedure a
  9. b
  10. endproc
  11. procedure b
  12. a
  13. endproc
  14.  
  15. This will cause a out or stack error becos it writes the same data one time
  16. for each loop until you are out of stack space, Right?? 
  17. But how do you make this work???
  18.  
  19. And will it be bether to do it like this??
  20.  
  21. Movment:
  22. (some code)
  23. return
  24.  
  25. procedure a
  26. do
  27. (some code)
  28. gosub movment 
  29. loop
  30. endproc 
  31.  
  32. With this i dont get it to jump out of the proceure and go to Movment: and 
  33. return back into the procedure.
  34. I tryed  Global movment  but that dident help at all :(
  35.  
  36. The reason i want it to be like one of these exampels is that i'am gonna have
  37. 6 procedures and then it takes up to much space and memory to have the code 
  38. in movment 6 times, when i dont need to have it more than one time.
  39.  
  40. Oki, please help me with this prob!!!
  41.  
  42.  
  43. Morten Bolstad.
  44.  
  45.  
  46.  
  47.  
  48.